<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'bookBorrow.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="images/main.css">

<script type="text/javascript" src="images/jquery.js"></script>

<script type="text/javascript">
	$(function() {

		$("#submit").click(function() {
			$.ajax({
				type:"post",
				url:"borrowBook",
				data:$("#form").serialize(),
				success:function(){
					window.opener.location.reload();
					window.close();
				}
			});
		});
	});
</script>

</head>

<body>
	<div class="mainBox">
		<form id="form" style="margin:30px 50px">
			<s:textfield name="bid" type="hidden"></s:textfield>
			<s:select list="#session.SESSION_LISTMANAGER" listKey="manId"
				listValue="manName" name="uid" label="请选择借阅用户" cssClass="text"></s:select>
			<input type="button" class="buttons" id="submit" value="提交" />
		</form>
	</div>
</body>
</html>
